﻿using Shop.Core.Share;

namespace Shop.IServices
{
    /// <summary>
    /// 事件处理服务
    /// </summary>
    public interface IEventHandleAppService : IAppService
    {
        /// <summary>
        /// 计算佣金
        /// </summary>
        /// <param name="OrderId"></param>
        /// <returns></returns>
        Task CalculateCommission(long OrderId);

        /// <summary>
        /// 用户等级检测
        /// </summary>
        /// <param name="userIds"></param>
        /// <returns></returns>
        Task UserUpgradeCheck(List<long> userIds);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        Task PushOrderToERP(long orderId);
    }
}
